package com.ruoyi.common.constant;

/**
 * @author vnjohn
 * @since 2023/2/19
 */
public class WxConstant {
    /**
     * 小程序授权grant_type
     */
    public static final String AUTHORIZATION_CODE = "023VMFlQ0fMEp72wK7kQ0FIqlQ0VMFlu";
    /**
     * 打卡模板id
     */
    public final static String PUNCH_TEMPLATE_ID = "0pMwyHxbobrotPdcbkIUt3fY03pnVm9Ril4KEqLmeNE";
    /**
     * 收款模板id
     */
    public final static String COLLECTION_TEMPLATE_ID = "7vdNCysQL64KBQtHG4xy2wsTQWyvQo4P66HPDvXbIHE";
    /**
     * 学校通知模板id
     */
    public final static String MSG_TEMPLATE_ID = "DVBa7LpPssglj5DYgNtenxDhZ-8DBuxnctVgiwnhGxs";
    /**
     * 公众号APP_ID
     */
    public final static String GZH_APP_ID = "公众号APP_ID";
    /**
     * 公众号SECRET
     */
    public final static String GZH_SECRET = "公众号SECRET";
    /**
     * 公众号获取用户信息的 URL
     */
    public final static String GZH_USER_INFO = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID";
    /**
     * 小程序APP_ID
     */
    public final static String APPLET_APP_ID = "小程序APP_ID";
    /**
     * 小程序APP_SECRET
     */
    public final static String APPLET_SECRET = "小程序APP_SECRET";
    /**
     * 小程序获取token凭证获取（GET）url、公众号推送消息获取token凭证
     */
    public final static String TOKEN_URL = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=" +
            "APPID&secret=SECRET";
    /**
     * 生成小程序二维码
     */
    public final static String QRCODE_URL = "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=ACCESSTOKEN";
    /**
     * 公众号推送模板消息URL
     */
    public final static String MSG_API = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=ACCESSTOKEN";
    /**
     * 获取网页授权凭证URL
     */
    public final static String AUTH_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";
}

